<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">花种类型展示</a></li>
        <li><a href="{:url('AdminFlower/typeadd')}" style="display:none">花种类型添加</a></li>
    </ul>
    <form class="js-ajax-form" action="" method="post">

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th style="text-align: center;width:8%" >花种类型名称</th>
                <th style="text-align: center;width:10%" >展示图片</th>
                <th style="text-align: center;width:10%;display:none;" >展示图片2</th>
                <th style="text-align: center;width:10%" >首页展示内容图片</th>
                <th style="text-align: center;width:10%" >首页展示标题图片</th>
                <th style="text-align: center;width:12%" >产品展示页的标题图片</th>
                <th style="text-align: center;width:5%" >描述</th>
          <!--      <th style="text-align: center;width:30%" >你不知道的花加</th>
                <th style="text-align: center;width:30%" >完美服务带你飞</th>-->
                <th style="text-align: center;width:7%">最低价格</th>
                <th style="text-align: center;width:7%">添加的时间</th>
                <th style="text-align: center;width:7%">是否是非花类</th>
                <th style="text-align: center;width:4%">类型</th>
                <th style="text-align: center;width:13%">操作</th>
            </tr>
            </thead>
            <foreach name="flowers" item="vo">
                <tr>
                    <td><b>{$vo.id}</b></td>
                    <td style="text-align: center">
                        {$vo.name}
                    </td>
                    <td style="text-align: center;height:80px">
                        <notempty name="$vo.image">
                            <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.image)}');">
                                <!--<i class="fa fa-photo fa-fw"></i>-->
                                <img src="{:cmf_get_image_preview_url($vo.image)}" style="width:100px;height:100px">
                            </a>
                        </notempty>
                    </td>
                     <td style="text-align: center;height:80px;display:none;">
                        <notempty name="$vo.image2">
                            <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.image2)}');">
                                <!--<i class="fa fa-photo fa-fw"></i>-->
                                <img src="{:cmf_get_image_preview_url($vo.image2)}" style="width:100px;height:100px">
                            </a>
                        </notempty>
                    </td>
                    <td style="text-align: center;height:80px">
                        <notempty name="$vo.homepage">
                            <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.homepage)}');">
                                <!--<i class="fa fa-photo fa-fw"></i>-->
                                <img src="{:cmf_get_image_preview_url($vo.homepage)}" style="width:100px;height:100px">
                            </a>
                        </notempty>
                    </td>
                    <td style="text-align: center;height:80px">
                        <notempty name="$vo.homepagetitile">
                            <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.homepagetitile)}');">
                                <!--<i class="fa fa-photo fa-fw"></i>-->
                                <img src="{:cmf_get_image_preview_url($vo.homepagetitile)}" style="width:100px;height:100px">
                            </a>
                        </notempty>
                    </td>
                    <td style="text-align: center;height:80px">
                        <notempty name="$vo.flowertitle">
                            <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.flowertitle)}');">
                                <!--<i class="fa fa-photo fa-fw"></i>-->
                                <img src="{:cmf_get_image_preview_url($vo.flowertitle)}" style="width:100px;height:100px">
                            </a>
                        </notempty>
                    </td>
                    <td style="text-align: center;" id="description">
                        {$vo.description}
                    </td>
                    <!--<td style="text-align: center;" id="knows">
                        {$vo.knows}
                    </td>
                    <td style="text-align: center;" id="service">
                        {$vo.service}
                    </td>-->
                    <td style="text-align: center">
                        {$vo.bottomprice}元
                    </td>
                    <td style="text-align: center">
                        {$vo.dottime}
                    </td>
                    <td style="text-align: center">
                        <if condition="$vo.goodtype==1">
                            是
                           <else/>
                            否
                        </if>
                    </td>
                    <td style="text-align: center">
                        <if condition="$vo.status==0">
                            启用
                            <else/>
                            禁用
                        </if>
                    </td>
                    <td style="text-align: center">
                        <a href="{:url('AdminFlower/typeedit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a href="{:url('AdminFlower/delete',array('id'=>$vo['id']))}" >
                            <if condition="$vo.status==0">
                                禁用
                            <else/>
                                启用
                        </if></a>
                    </td>
                </tr>
            </foreach>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $('#knows p img').attr('height','80px');
    $('#service p img').attr('height','80px');
</script>
</body>
</html>